<?php
/**
 * Description of AtributoMeta
 *
 * @author Magno
 */
class AttributeMeta {
    
    private $name;
    private $type;
    private $notNull;
    private $primaryKey;
    private $foreignKey;
    private $default;
    private $important;
    private $comboDisplay;
    
    function __construct($name, $type, $notNull, $primaryKey, $foreignKey, $default, $important, $comboDisplay) {
        $this->name = $name;
        $this->type = $type;
        $this->notNull = $notNull;
        $this->primaryKey = $primaryKey;
        $this->foreignKey = $foreignKey;
        $this->default = $default;
        $this->important = $important;
        $this->comboDisplay = $comboDisplay;
    }
    
    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function getType() {
        return $this->type;
    }

    public function setType($type) {
        $this->type = $type;
    }

    public function isNotNull() {
        return $this->notNull;
    }

    public function setNotNull($notNull) {
        $this->notNull = $notNull;
    }

    public function isPrimaryKey() {
        return $this->primaryKey;
    }

    public function setPrimaryKey($primaryKey) {
        $this->primaryKey = $primaryKey;
    }

    public function getDefault() {
        return $this->default;
    }

    public function setDefault($default) {
        $this->default = $default;
    }

    public function isForeignKey() {
        return $this->foreignKey;
    }

    public function setForeignKey($foreignKey) {
        $this->foreignKey = $foreignKey;
    }
    
    public function isImportant() {
        return $this->important;
    }

    public function setImportant($important) {
        $this->important = $important;
    }

    public function isComboDisplay() {
        return $this->comboDisplay;
    }

    public function setComboDisplay($comboDisplay) {
        $this->comboDisplay = $comboDisplay;
    }

        
    public function toArray(){
        $attr = array();

        $attr['name'] = $this->name;
        $attr['type'] = $this->type;
        $attr['default'] = $this->default;
        $attr['primaryKey'] = $this->primaryKey;
        $attr['notNull'] = $this->notNull;
        $attr['foreignKey'] = $this->foreignKey;
        
        return $attr;
    }
    
}

?>
